﻿using Microsoft.Data.Objects;
using Model;

namespace Configuration.ModelConfiguration
{
    public class InformationConfiguration : EntityConfiguration<Information>
    {
        public InformationConfiguration()
        {
            Property(c => c.Id).IsIdentity();
            Property(c => c.ViAboutUs).HasMaxLength(4000).IsRequired();
            Property(c => c.EnAboutUs).HasMaxLength(4000).IsRequired();
            Property(c => c.ViContact).HasMaxLength(4000).IsRequired();
            Property(c => c.EnContact).HasMaxLength(4000).IsRequired();
        }
    }
}